package com.enjoybyte.pangucloud.consumer.controller;

import com.enjoybyte.pangucloud.consumer.domain.OrderInfo;
import com.enjoybyte.pangucloud.consumer.service.IOrderInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lijunjie
 * @since 2024-06-26
 */
@Slf4j
@RestController
@RequestMapping("/orderInfo")
@RequiredArgsConstructor
public class OrderInfoController {

    private final IOrderInfoService orderInfoService;

    @GetMapping("list")
    public List<OrderInfo> list(){
        log.info("consumer module orderInfo method is run ...");
        return orderInfoService.list();
    }
}
